<template>
  <div class="container">
    <el-dialog
      title="审核订单详情"
      :visible.sync="supercherkinfoDialogs.centerDialogVisible"
      @open="getData"
      center
    >
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        empty-text="暂无数据"
      >
        <el-table-column
          prop="username"
          label="操作人"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="nickname"
          label="角色"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="opt_desc"
          label="审核描述"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="opt_time"
          label="审核时间"
          align="center"
        ></el-table-column>
        <el-table-column
          prop="remark"
          label="备注"
          align="center"
        ></el-table-column>
      </el-table>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="confirm">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
import { getBillOperationData } from "@/api/superOrderNew/superOrderList";
export default {
  props: {
    supercherkinfoDialogs: Object,
  },
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    confirm() {
      this.supercherkinfoDialogs.centerDialogVisible = false;
    },
    getData() {
      let data = {
        id: this.supercherkinfoDialogs.id,
        module: "smkapi",
        control: "order",
        act: "confirmorder,synchrostockbyold,confirmhangcaiorder,createorderbymultistore",
      };
      getBillOperationData(data).then((res) => {
        if (res.code == 0) {
          this.tableData = res.data.list;
        }
      });
    },
    //每页多少条
    handleCurrentChange(val) {
      this.pageData.page = 1;
      this.pageData.pageSize = val;
      this.getData();
    },
    //选取页数
    handleSizeChange(page) {
      this.pageData.page = page;
      this.getData();
    },
  },
};
</script>
<style scoped>
.pagination {
  text-align: right;
  padding: 10px;
}
</style>